package host.skiree.nettydemo.message;

import lombok.Data;
import lombok.ToString;

import java.util.Set;

/**
 * @author anorak
 */
@Data
@ToString(callSuper = true)
public class UserListResponseMessage extends AbstractResponseMessage {

    private Set<String> users;

    public UserListResponseMessage(boolean success, String reason) {
        super(success, reason);
    }

    public UserListResponseMessage(Set<String> users) {
        this.users = users;
    }

    @Override
    public int getMessageType() {
        return UserListResponseMessage;
    }
}
